import metchonServices from '@/services/metchonService.js';
import file from '@/common/utils/file.js'

export default {
	data() {
		return {
			fromData: {},
			sbztOptions: [{
					label: '正常',
					value: '0'
				},
				{
					label: '异常',
					value: '1'
				}, {
					label: '其他',
					value: '2'
				}
			],
			imagePath1: '',
			imagePath2: '',
		}
	},
	onShow(){
		console.log('weixiu show')
	},
	computed: {
		zbztName() {
			return function(value) {
				var item = this.sbztOptions.find(e=>e.value === value);
				if(item){
					return item.label;
				}
				return value;
			}
		}
	},
	async onLoad(option) {
		await this.$store.dispatch('checkLoginAction');
		this.fromData = await metchonServices.queryMaintenanceById(option.id);
	},
	methods: {
	
	}
}